package com.tongji.admin.event
{
	import com.tongji.admin.vo.Brand;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/7/
	 */ 
	public class BrandAdminEvent extends Event
	{
		public static const GET_ALL_BRANDS:String = "getAllBrands";
		public static const ADD_A_BRAND:String = "addABrand";
		public static const UPDATE_BRANDS:String = "updateBrands";
		
		public var brand:Brand;
		public var brandArray:ArrayCollection;
		
		public function BrandAdminEvent(type:String, brand:Brand = null, brandArray:ArrayCollection = null)
		{
			super(type);
			this.brand = brand;
			this.brandArray = brandArray;
		}
		
		override public function clone():Event
		{
			return new BrandAdminEvent(type, brand, brandArray);
		}
	}
}